<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{% block title %}Will's Blog{% endblock %}</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='css/boostrap.min.css') }}">
    <link rel="stylesheet" href="{{ url_for('static', filename='css/boostrap-icons.min.css') }}">
    <link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
    <link rel="stylesheet" href="{{ url_for('static', filename='css/github.min.css') }}">
    {% block styles %}{% endblock %}
</head>
<body>
    <header>
        {% include 'includes/navbar.html' %}
    </header>

    <main class="container py-4">
        {% include 'includes/flash.html' %}
        {% block content %}{% endblock %}
    </main>

    <footer class="footer mt-auto py-3 bg-light">
        <div class="container text-center">
            <span class="text-muted">© {{ current_year }} Will's Blog | 由 Flask 强力驱动</span>
        </div>
    </footer>

    <script src="{{ url_for('static', filename='js/boostrap.bundle.min.js') }}"></script>
    <script src="{{ url_for('static', filename='js/highlight.min.js') }}"></script>
    <script>hljs.highlightAll();</script>
    <script src="{{ url_for('static', filename='js/main.js') }}"></script>
    
    <!-- MathJax配置 -->
    <script>
    MathJax = {
      tex: {
        inlineMath: [['\\(', '\\)'],['$','$']],
        displayMath: [['$$', '$$'], ['\\[', '\\]']],
        processEscapes: true,
        processEnvironments: true
      },
      options: {
        ignoreHtmlClass: 'tex2jax_ignore',
        processHtmlClass: 'tex2jax_process'
      }
    };
    </script>
    <script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
    <script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
    
    {% block scripts %}{% endblock %}
</body>
</html>